<?php 

if ($app_shop_hasUnit=="no"){
?>
<script>
var td=$("#shop_orderline_unitId_view");
col=td.parent("tr").children().index(td)+1;
$('td:nth-child('+col+'),th:nth-child('+col+')').hide();
</script>
<?php 

}

?>